﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="J_ProductImages.ascx.cs"
    Inherits="Pub_Module_J_ProductImages" %>

<script language="javascript" src="<%= ResolveClientUrl("~/")%>Pub/Js/JQ/popSlides.js"
    type="text/javascript"></script>

<link href="<%= ResolveClientUrl("~/")%>Pub/Css/JQ/PopSlides.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">

var Url='<%= ResolveClientUrl("~/")%>';
var PDID='<%= Request.QueryString["PDID"] %>';
//LoadingAjax();
$(window).load(function() {    

                     $.ajax({  
                               type: "GET", 
                               url: Url+"Pub/Ajax/AjaxQuery.aspx?type=GetProductImages&PDID="+PDID, 
                               success: function(resp)
                               { 
                                      $("#<%= divData.ClientID%>").html(resp); 
                                                           
                                       PlayPopSilesPdImg();
                          
                               } 
                        });        
  });      
 

function LoadingAjax()         
{
    $(document).ready(function() {
        $('<div class="div-loading"></div>')
           
        .ajaxStart(function() 
        {
            $(this).show();
        }).ajaxStop(function() 
        {
            $(this).hide();
        });
    });

}             
</script>


<asp:Panel ID="divData" runat="server" CssClass="popImgDetail">
</asp:Panel>
<script language="javascript" type="text/javascript">
function PlayPopSilesPdImg() 
{
    	$('.pop').popSlides({
				play: true,
				path:Url+"Images/Icon/PopSlides/"
			});

}
</script>
